<template>
  <div class="tools-detail-container">
    <!-- Header -->
    <div class="header">
      <div class="container">
        <div class="header-content">
          <h1 class="main-title">需求定位工具包</h1>
          <div class="sub-title">精准定位装修需求，选择合适的装企类型</div>
        </div>
      </div>
    </div>

    <div class="container">
      <!-- Tools Package Content -->
      <div class="tools-package">
        <div class="package-header">
          <div class="package-title">
            <i class="fas fa-search"></i> 工具包内容
          </div>
        </div>

        <div class="package-content">
          <div class="tool-section">
            <h4><i class="fas fa-lightbulb"></i> 测评及对比表作用</h4>
            <p>根据测评得分对照不同维度，确定适合用户的装企类型。</p>
            <p>多维度展示装企特点，让用户清晰了解各类装企差异。</p>
          </div>

          <div class="tool-section">
            <h4><i class="fas fa-clipboard-check"></i> 《装修DNA测评》</h4>
            <p>精心设计20道测试题，帮助用户了解自身装修需求和偏好。</p>
          </div>

          <div class="tool-section">
            <h4><i class="fas fa-table"></i> 《装企多维对比表》</h4>
            <p>包含六种常见类型装企及三种常见组合形式，进行多维度对比。</p>
          </div>
        </div>
      </div>

      <!-- Action Buttons -->
      <div class="tools-actions">
        <el-button type="primary" size="large" class="tool-action-btn dna-btn" @click="goToDnaTest">
          进入DNA测评
        </el-button>

        <el-button type="success" size="large" class="tool-action-btn comparison-btn" @click="goToComparison">
          多维对比表
        </el-button>
      </div>
    </div>

    <!-- Footer -->
    <div class="footer">
      <el-button type="primary" size="large" class="backBtn" @click="backToHome">
        返回首页
      </el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ToolsDetailView',
  methods: {
    goToDnaTest() {
      this.$router.push('/dna-test')
    },
    goToComparison() {
      this.$router.push('/company-comparison')
    },
    backToHome() {
      this.$router.push('/')
    }
  }
}
</script>

<style scoped>
/* 工具包详情页样式 */
.tools-detail-container {
  min-height: 100vh;
  padding-bottom: 70px;
  background: linear-gradient(135deg, #f0f9eb 0%, #e6f4e6 100%);
  color: var(--text-dark);
  line-height: 1.5;
}

.container {
  max-width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

.header {
  background: var(--primary-color);
  color: white;
  padding: 12px 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-medium);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.main-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sub-title {
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.tools-package {
  margin: 20px 0;
  position: relative;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.package-header {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.package-title {
  font-size: 15px;
  display: flex;
  align-items: center;
}

.package-title i {
  margin-right: 8px;
  font-size: 16px;
}

.package-content {
  padding: 14px;
  background: white;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.tool-section {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e0e0e0;
  position: relative;
}

.tool-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tool-section h4 {
  color: var(--primary-color);
  font-size: 14px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.tool-section h4 i {
  margin-right: 8px;
  font-size: 14px;
  width: 20px;
  text-align: center;
}

.tool-section p {
  font-size: 12px;
  color: var(--text-medium);
  padding-left: 28px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.tool-section p:last-child {
  margin-bottom: 0;
}

.tools-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  box-sizing: border-box;
}

.tool-action-btn {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 12px;
  color: #fff;
  padding: 24px 0;
  flex: 1;
}

.comparison-btn {
  margin-left: 0 !important;
}

.tool-action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

.tool-action-btn i {
  font-size: 18px;
}

.disclaimer {
  background: #f5f5f5;
  padding: 10px;
  margin: 16px 0;
  border-radius: 8px;
  font-size: 10px;
  color: #ff0000;
  line-height: 1.4;
  text-align: center;
}

.backBtn {
  background-color: #2e7d32;
  border-radius: 8px;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  text-align: center;
  padding: 10px 20px;
}

.nav-buttons {
  margin-bottom: 5px;
}

.copyright {
  font-size: 12px;
  color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .tools-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    box-sizing: border-box;
  }



  .main-title {
    font-size: 20px;
  }

  .sub-title {
    font-size: 11px;
  }
}

@media (min-width: 769px) {
  .tools-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    box-sizing: border-box;
  }

}
</style>